﻿using NUnit.Framework;
using Vk.Methods.Users;

namespace UnitTests
{
    [TestFixture]
    public class UsersTests : TestsBase
    {
        [Test]
        public void GetTest()
        {
            IsSignatureUpdated(typeof(Users).GetMethod("Get"), "http://vk.com/dev/users.get");
        }

        [Test]
        public void GetNearbyTest()
        {
            IsSignatureUpdated(typeof(Users).GetMethod("GetNearby"), "http://vk.com/dev/users.getNearby");
        }

        [Test]
        public void GetFollowersTest()
        {
            IsSignatureUpdated(typeof(Users).GetMethod("GetFollowers"), "http://vk.com/dev/users.getFollowers");
        }

        [Test]
        [ExcludeParameters("offset", "count", "fields")]
        [HasExtendedVersion]
        public void GetSubscriptionsTest()
        {
            IsSignatureUpdated(typeof(Users).GetMethod("GetSubscriptions"), "http://vk.com/dev/users.getSubscriptions");
        }

        [Test]
        public void ReportTest()
        {
            IsSignatureUpdated(typeof(Users).GetMethod("Report"), "http://vk.com/dev/users.report");
        }

        [Test]
        public void SearchTest()
        {
            IsSignatureUpdated(typeof(Users).GetMethod("Search"), "http://vk.com/dev/users.search");
        }

        [Test]
        public void IsAppUserTest()
        {
            IsSignatureUpdated(typeof(Users).GetMethod("IsAppUser"), "http://vk.com/dev/users.isAppUser");
        }
    }
}
